<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>示例6</title>
</head>
<body>
    <script>
        let arr = [1,2,3]
        let a = arr[0]
        let b = arr[1]
        let c = arr[2]
        console.log(a,b,c)
        let [x,y,z] = arr;
        console.log(x,y,z)

        let [a1,,b1] = arr
        console.log(a1,b1)
    </script>
</body>
</html>